package com.perritosca.webservice;

import java.util.List;
import com.perritosca.webservice.R;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

public class GeneralAdapter<T extends GeneralAdapterView> extends ArrayAdapter<T> {

	public GeneralAdapter(Context context, int textViewResourceId, List<T> elementos) {
		super(context, textViewResourceId, elementos);
	}
	@Override
	public View getView(int position, View convertView, ViewGroup parent){
		View v = convertView;
		if (v == null) {
			
			v = View.inflate(parent.getContext(), R.layout.list_item, null);
		}
		return this.getItem(position).getView(v);
	}
}
